<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <ul>
      <!-- <li v-for="item in array" :key="item">{{item}}</li> -->
      <li v-for="item in array2" :key="item.id">{{item.name}}</li>
    </ul>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        array: ['A','B','C','D','E'],
        array2: [
          {
            id: 1,
            name: 'A'
          },
          {
            id: 2,
            name: 'B'
          }, {
            id: 3,
            name: 'C'
          }
        ]
      },
  })
  </script>
</body>
</html>